package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

/**
 * 用户服务接口
 */
public interface UserService {
    public User findByUsername(String username);


    PageResult findPage(QueryPageBean queryPageBean);

    void addUser(User user, Integer[] roleIds);

    User findUserById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(User user, Integer[] roleIds);

    void deleteUser(Integer id);

    List<Role> findRoleByUserId(Integer id);
}
